package com.cneport.das.common.model.param;

import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.xml.bind.annotation.*;
import java.io.Serializable;

/**
 * @Desc 参数服务Erp请求获得的响应值
 * @Ver 1.0
 * @Author GavinZhang
 * @Company 东方物通科技有限（北京）公司
 * @Date 2021-12-13 10:57:19
 */
@XmlRootElement(name = "ParamResponse")
@XmlAccessorType(XmlAccessType.FIELD)
@Data
public class ErpResponse implements Serializable {
    @XmlElement(name = "ParamResp")
    private ErpGetRetn retHead;
    @XmlElement(name = "ParamData")
    private ErpBizData bizData;

    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    @Builder
    public static class ErpGetRetn {
        private String guid;
        private String respTime;
        private Long dealTime;
        private String respCode;
        private String respInfo;
        private String paraType;
    }

    @XmlAccessorType(XmlAccessType.FIELD)
    @XmlType
    @Data
    @AllArgsConstructor
    @NoArgsConstructor
    public static class ErpBizData {
        private String dataForm;
        private String data;
    }

}

